package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysBuildingUnit;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 房产单元管理视图对象 sys_building_unit
 *
 * @author LSL
 * @date 2024-05-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysBuildingUnit.class)
public class SysBuildingUnitVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 单元ID
     */
    @ExcelProperty(value = "单元ID")
    private Long unitId;

    /**
     * 单元名称
     */
    @ExcelProperty(value = "单元名称")
    private String name;

    /**
     * 单元编号
     */
    @ExcelProperty(value = "单元编号")
    private String unitNum;

    /**
     * 楼ID
     */
    @ExcelProperty(value = "楼ID")
    private Long floorId;

    /**
     * 小区id
     */
    @ExcelProperty(value = "小区id")
    private Long communityId;

    /**
     * 总层数
     */
    @ExcelProperty(value = "总层数")
    private Long layerCount;

    /**
     * 是否有电梯 0有 1 无
     */
    @ExcelProperty(value = "是否有电梯 0有 1 无")
    private String lift;

    /**
     * 单元面积
     */
    @ExcelProperty(value = "单元面积")
    private BigDecimal unitArea;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
